# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月18日
"""
from docx import Document

file = Document('./练习/练习4.docx')
pic1 = file.paragraphs[1].add_run().add_picture('./练习/赵丽颖.jpg')
pic1.height = int(file.inline_shapes[0].height * 0.5)
pic1.width = int(file.inline_shapes[0].width * 0.5)
file.save('./练习/练习5-结果3.docx')
